package com.cmas.manage.mapper;

import com.cmas.manage.domain.StudentInfo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.cmas.manage.vo.StudentInfoVo;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * 学生信息Mapper接口
 *
 * @author cmas
 * @date 2021-05-01
 */
public interface StudentInfoMapper extends BaseMapper<StudentInfo> {


    /**
     * selectListVo
     * @param studentInfo
     * @return
     */
    List<StudentInfoVo> selectListVo(StudentInfo studentInfo);

    /**
     * 统计学生数量
     * @return
     */
    @Select("select count(*) from student_info")
    Integer stuCount();

    List<Long> selectDeptId();
}
